package csoei.bbs.servlets;
import java.io.IOException;import javax.servlet.ServletException;import javax.servlet.http.*;
public class logout extends HttpServlet {private static final long serialVersionUID = 1L;public logout() {super();}
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {this.doPost(request, response);}
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		HttpSession session=request.getSession();session.invalidate();
		response.sendRedirect(request.getHeader("Referer"));
	}
}
